import formBuilder from "@/comps/form/formBuilder";
import apiItemBase from "@/pages/v1/wms/ItemBase/js/api";
import apiUnit from "@/pages/v1/wms/Unit/js/api";

export default function () {
    let fb = formBuilder()
    fb.setLabelPosition("right").setLabelWidth(100)
    fb.addText("itemBase.name__like").setLabel("物资名称").setSpan(3).setTips("名称模糊搜索")

    fb.addSelect("unitId","单位",3).setApi(apiUnit.urlChoice)
    fb.addSearch("itemBaseId","物资",6)
        .setApi(apiItemBase.urlChoice).setApiSearchKeys(["name__like"])

    return fb
}